//
//  TodayListSubTableViewCell.m
//  UI_A段项目_iDaily Watch
//
//  Created by 刘旭 on 14-10-16.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "TodayListSubCellOneTableViewCell.h"

@implementation TodayListSubCellOneTableViewCell
- (void)dealloc
{
    [_scrollView release];
    [super dealloc];
}
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.scrollView = [[UIScrollView alloc]initWithFrame:CGRectMake(0, 0, 320, 110)];
        _scrollView.pagingEnabled = YES;
        _scrollView.bounces = NO;
        _scrollView.backgroundColor = [UIColor grayColor];
        [_scrollView setShowsHorizontalScrollIndicator:NO];
        _scrollView.contentSize = CGSizeMake(110 * 4, 110);
        [self.contentView addSubview:_scrollView];
        for (int i = 0; i < 4; i++) {
            self.button = [UIButton buttonWithType:UIButtonTypeSystem];
            _button.frame = CGRectMake(10 + 100 * i, 10, 90, 90);
            _button.backgroundColor = [UIColor cyanColor];
            _button.tag = i + 1;
            [self.scrollView addSubview:_button];
        }
    }
    return self;
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
